package a.f.g.a;

public class qb
  implements nc
{
  private nc b;
  private x c = new x(1.0D);
  private yb d = new yb(0.0D, 0.0D, 500.0D, 500.0D, 50.0D);
  private cc e = new cc();
  private kc f = new kc();
  public static boolean g;
  
  public void a(double paramDouble)
  {
    this.c.a(paramDouble);
    ob localob = new ob(this.c, ob.b, 0.0D, 1000.0D);
    localob.c(0.1D);
    this.b = localob;
  }
  
  public void a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = xb.r;
    if (!bool)
    {
      if (paramDouble3 > 0.0D) {
        if (bool) {
          break label59;
        }
      }
    }
    else {
      if (paramDouble4 > 0.0D) {
        break label39;
      }
    }
    throw new IllegalArgumentException("Width and height must be > 0");
    label39:
    label59:
    double d1 = Math.max(10.0D, Math.min(50.0D, Math.min(paramDouble3, paramDouble4) / 3.0D));
    this.d.a(paramDouble1 - d1, paramDouble2 - d1, paramDouble3 + 2.0D * d1, paramDouble4 + 2.0D * d1);
    this.d.a(d1);
    ob localob = new ob(this.d, ob.e, 0.0D, 1.0D);
    localob.c(1.0D);
    this.b = localob;
  }
  
  public void a(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    if (!xb.r) {
      if (paramDouble3 <= 0.0D) {
        throw new IllegalArgumentException("Radius must be > 0");
      }
    }
    double d1 = Math.max(10.0D, Math.min(50.0D, paramDouble3 / 3.0D));
    this.f.a(new pb(paramDouble1, paramDouble2, 0.0D));
    this.f.b(paramDouble3 + d1);
    this.f.a(d1);
    ob localob = new ob(this.f, ob.e, 0.0D, 1.0D);
    localob.c(1.0D);
    this.b = localob;
  }
  
  public void a()
  {
    this.b = null;
  }
  
  public y a(cb paramcb, bb parambb, f paramf)
  {
    if ((xb.r) || (this.b != null)) {
      return this.b.a(paramcb, parambb, paramf);
    }
    return paramf;
  }
  
  public void b(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = xb.r;
    if (!bool)
    {
      if (paramDouble3 > 0.0D) {
        if (bool) {
          break label63;
        }
      }
    }
    else {
      if (paramDouble4 > 0.0D) {
        break label39;
      }
    }
    throw new IllegalArgumentException("width and height must be > 0");
    label39:
    label63:
    double d1 = Math.max(10.0D, Math.min(50.0D, Math.min(paramDouble3 / 3.0D, paramDouble4 / 3.0D)));
    this.e.a(d1);
    this.e.a(new pb(paramDouble1 + paramDouble3 * 0.5D, paramDouble2 + paramDouble4 * 0.5D, 0.0D));
    this.e.b(paramDouble3 * 0.5D - d1);
    this.e.c(paramDouble4 * 0.5D - d1);
    ob localob = new ob(this.e, ob.e, 0.0D, 1.0D);
    localob.c(1.0D);
    this.b = localob;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.qb
 * JD-Core Version:    0.7.0.1
 */